package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

import javax.validation.constraints.NotBlank;

/**
 * 代理申请记录对象 jiajia_proxy_application
 *
 * @author ruoyi
 * @date 2025-03-04
 */
public class JiajiaProxyApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 申请人姓名 */
    @Excel(name = "申请人姓名")
    @NotBlank(message = "申请人姓名不能为空")
    private String name;

    /** 申请人电话 */
    @Excel(name = "申请人电话")
    @NotBlank(message = "申请人电话不能为空")
    private String phone;

    /** 紧急联系人姓名 */
    @Excel(name = "紧急联系人姓名")
    @NotBlank(message = "紧急联系人姓名不能为空")
    private String emergencyContacts;

    /** 紧急联系人电话 */
    @Excel(name = "紧急联系人电话")
    @NotBlank(message = "紧急联系人电话不能为空")
    private String emergencyCalls;

    /** 类型0推广员1区域代理2小区代理 */
    @Excel(name = "类型0推广员1区域代理2小区代理")
    private Integer type;

    /** 状态0待审核1通过 */
    @Excel(name = "状态0待审核1通过")
    private Integer status;

    /** 小区名字 */
    @Excel(name = "小区名字")
    @NotBlank(message = "小区名字不能为空")
    private String community;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 地址 */
    @Excel(name = "地址")
    @NotBlank(message = "地址不能为空")
    private String address;

    private String examine;//1是0否

    private String paymentChannels;
    private String transactionId ;
    private String longitude ;
    private String latitude ;

    private String profitSharingId ;


    public String getPaymentChannels() {
        return paymentChannels;
    }

    public void setPaymentChannels(String paymentChannels) {
        this.paymentChannels = paymentChannels;
    }

    public String getProfitSharingId() {
        return profitSharingId;
    }

    public void setProfitSharingId(String profitSharingId) {
        this.profitSharingId = profitSharingId;
    }

    @Transient
    private String latlong;

    public String getLatlong() {
        return latlong;
    }

    public void setLatlong(String latlong) {
        this.latlong = latlong;
    }

    public String getExamine() {
        return examine;
    }

    public void setExamine(String examine) {
        this.examine = examine;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    /**
     * 用户名
     */
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setEmergencyContacts(String emergencyContacts)
    {
        this.emergencyContacts = emergencyContacts;
    }

    public String getEmergencyContacts()
    {
        return emergencyContacts;
    }
    public void setEmergencyCalls(String emergencyCalls)
    {
        this.emergencyCalls = emergencyCalls;
    }

    public String getEmergencyCalls()
    {
        return emergencyCalls;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCommunity(String community)
    {
        this.community = community;
    }

    public String getCommunity()
    {
        return community;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("phone", getPhone())
                .append("emergencyContacts", getEmergencyContacts())
                .append("emergencyCalls", getEmergencyCalls())
                .append("type", getType())
                .append("status", getStatus())
                .append("community", getCommunity())
                .append("userId", getUserId())
                .append("address", getAddress())
                .append("userName",getUserName())
                .toString();
    }
}
